<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <template v-if="students.length==0">
            <h3>暂时没有看到学生</h3>
        </template>
        <template v-else>
            <ul>
                <li v-for="name in students" :key="name">
                    {{ name }}
                </li>
            </ul>
        </template>
    </div>
    <!-- <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> -->
    <script src="../assets/vue3.js"></script>
    <script>
        const app = Vue.createApp({
            data() {
                return {
                    students: ['小明', '小张', '王二', 'goudan']
                }
            },
        });
        app.mount('#app');
    </script>
</body>

</html>